import { defineStore } from "pinia";
// 数据格式
interface Data {
    name: string,
    code: string,
    icon: string,
    color: string,
    undo: number,
    total: number,
    key: string,
    parentsKey: string
};
export const useAlarmTypeStatisticsStore = defineStore({
  id: "useAlarmTypeStatistics",
  state: () => ({
    dialogShow: false,
    alarmInfo: <Data>{},
  }),
  getters: {},
  actions: {
    setDialogShow(show: boolean) {
      this.$patch({
        dialogShow: show,
      });
    },
    setAlarmTypeStatistics(alarmInfo: any) {
      this.$patch({
        alarmInfo: alarmInfo,
      });
    },
  },
});
